package com.naiterui.ehp.bs.b2c.order.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.naiterui.ehp.bp.bo.statistics.AsOrderRecordBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;

/**
 * @Description TODO
 * @Author gongbaoqiang
 * @Date 2020/6/3 6:26 PM
 */
@FeignClient(name = "seatch", url = "${ehp.domain.search}", configuration = FeignConfiguration.class)
public interface IOrderSearchFeignClient {

    /**
     * 创建医生订单相关记录
     * 
     * @param orderRecordBO
     * @throws BusinessException
     */
    @PostMapping("inner/statistics/order/record")
    void createOrderRecordIndex(@RequestBody AsOrderRecordBO orderRecordBO);
}
